<?php
/**
 * This file is form http://findcat.cn
 *
 * @link     https://findcat.cn
 * @email    1476982312@qq.com
 */
namespace Blog\Seeder\Admin\Test;

use Carbon\Carbon;
use App\Models\Comment;
use Illuminate\Database\Seeder;

class CommentTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run()
    {
        $data = [
            [
                'user_id'     => 1,
                'articles_id' => 1,
                'content'     => '这是一条测试评论',
                'ip'          => '127.0.0.1',
                'status'      => true,
                'created_at'  => Carbon::now(),
                'updated_at'  => Carbon::now(),
            ],
            [
                'user_id'     => 1,
                'articles_id' => 1,
                'content'     => '这是一条测试评论',
                'ip'          => '127.0.0.1',
                'status'      => true,
                'created_at'  => Carbon::now(),
                'updated_at'  => Carbon::now(),
            ],
            [
                'user_id'     => 1,
                'articles_id' => 1,
                'content'     => '这是一条测试评论',
                'ip'          => '127.0.0.1',
                'status'      => true,
                'created_at'  => Carbon::now(),
                'updated_at'  => Carbon::now(),
            ],
            [
                'user_id'     => 1,
                'articles_id' => 1,
                'content'     => '这是一条测试评论',
                'ip'          => '127.0.0.1',
                'status'      => true,
                'created_at'  => Carbon::now(),
                'updated_at'  => Carbon::now(),
            ],
            [
                'user_id'     => 1,
                'articles_id' => 1,
                'content'     => '这是一条测试评论',
                'ip'          => '127.0.0.1',
                'status'      => true,
                'created_at'  => Carbon::now(),
                'updated_at'  => Carbon::now(),
            ],
            [
                'user_id'     => 1,
                'articles_id' => 1,
                'content'     => '这是一条测试评论',
                'ip'          => '127.0.0.1',
                'status'      => true,
                'created_at'  => Carbon::now(),
                'updated_at'  => Carbon::now(),
            ],
            [
                'user_id'     => 1,
                'articles_id' => 1,
                'content'     => '这是一条测试评论',
                'ip'          => '127.0.0.1',
                'status'      => true,
                'created_at'  => Carbon::now(),
                'updated_at'  => Carbon::now(),
            ],
            [
                'user_id'     => 1,
                'articles_id' => 1,
                'content'     => '这是一条测试评论',
                'ip'          => '127.0.0.1',
                'status'      => true,
                'created_at'  => Carbon::now(),
                'updated_at'  => Carbon::now(),
            ],
            [
                'user_id'     => 1,
                'articles_id' => 1,
                'content'     => '这是一条测试评论',
                'ip'          => '127.0.0.1',
                'status'      => true,
                'created_at'  => Carbon::now(),
                'updated_at'  => Carbon::now(),
            ],
            [
                'user_id'     => 1,
                'articles_id' => 1,
                'content'     => '这是一条测试评论',
                'ip'          => '127.0.0.1',
                'status'      => true,
                'created_at'  => Carbon::now(),
                'updated_at'  => Carbon::now(),
            ],
            [
                'user_id'     => 1,
                'articles_id' => 1,
                'content'     => '这是一条测试评论',
                'ip'          => '127.0.0.1',
                'status'      => true,
                'created_at'  => Carbon::now(),
                'updated_at'  => Carbon::now(),
            ],
        ];

        Comment::query()->insert($data);
    }
}
